package com.itheima.javabean;

public class CatOperator {

    /*private Cat cat;

    public CatOperator(Cat cat) {
        this.cat = cat;
    }

    //提供方法，打印猫的信息
    public void printCatInfo() {

        System.out.println("猫的信息如下：");
        System.out.println("名字：" + cat.getName());
        System.out.println("年龄：" + cat.getAge());
        System.out.println("颜色：" + cat.getColor());
    }*/

    public void printCatInfo1(Cat cat){
        System.out.println("猫的信息如下：");
        System.out.println("名字：" + cat.getName());
        System.out.println("年龄：" + cat.getAge());
        System.out.println("颜色：" + cat.getColor());
    }
}
